package com.chen.learnknowledge.service.impl;

import com.chen.learnknowledge.dao.StaffDao;
import com.chen.learnknowledge.entity.Staff;
import com.chen.learnknowledge.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StaffServiceImpl implements StaffService {

    @Autowired
    StaffDao staffDao;

    @Override
    public Staff getStaffAndDept(Integer id) {
        Staff staffAndDept = staffDao.getStaffAndDept(id);
        return staffAndDept;
    }
}
